<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>商家管理</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/sellerManage.js"></script>
</head>
<body>
	<!--功能区-->
	<div class="container">
		<div class="row clearfix">
			<div class="col-md-4 column">
				<button class="btn btn-primary btn-sm" data-toggle="modal" id="btnAdd">
					商家入驻</button>
				<button class="btn btn-warning btn-sm" data-toggle="modal"
					id="btnModify">商家变更</button>
				<button class="btn btn-danger btn-sm" id="btnDelete">商家删除</button>
			</div>
			<div class="col-md-4 column"></div>
			<div class="col-md-4 column">
				<input type="text" id="findValue" placeholder="请输入查询内容（模糊查询）"
					class="saveHistory" style="margin-left: 20px; width: 200px;">
				<button class="btn btn-warning" id="btnSearch">查询</button>
			</div>
		</div>
	</div>


	<!--数据表格 -->
	<table class="table table-hover">
		<thead>
			<tr>
				<th></th>
				<th>商家编号</th>
				<th>商家名称</th>
				<th>商家地址</th>
				<th>是否金牌商家</th>
			</tr>
		</thead>
		<tbody>
			<!--数据表格展示-->
			<c:forEach items="${sf.sellers}" var="s" varStatus="s1">
				<tr>
					<td><c:if test='${s.id>10}'>
							<input type="checkbox" name="sUid" id="cUid" value="${s.id}">
						</c:if></td>
					<td><c:out value="${s.id}" /></td>
					<td><c:out value="${s.shopName}" /></td>
					<td><c:out value="${s.shopLocation}" /></td>
					<td><c:if test="${s.golden==1}">
							<img src="img/goldenSeller.png">
						</c:if></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<!--分页导航-->
	<ul class="pagination">
		<c:forEach items="${sf.pageList}" var="r" varStatus="r1">
			<li><a href="#"> <c:out value="${r}" />
			</a></li>
		</c:forEach>
	</ul>
	<!-- 模态框（Modal） ，用于新增或编辑-->
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<!--通过href装载将远程文件调入到此处-->
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>
</body>
</html>